//
//  DCUMShareTool.h
//  DCProject
//
//  Created by bigbing on 2019/3/31.
//  Copyright © 2019 bigbing. All rights reserved.
//

#import <Foundation/Foundation.h>

#if __has_include(<UShareUI/UShareUI.h>) && __has_include(<UMShare/UMShare.h>) && __has_include("WXApi.h")
#import <UShareUI/UShareUI.h>
#import <UMShare/UMShare.h>
#import "WXApi.h"


NS_ASSUME_NONNULL_BEGIN

@interface DCUMShareTool : NSObject


///  单列
+ (DCUMShareTool *) shareClient;

///  分享
- (void)shareInfoWithTitle:(NSString *)title content:(NSString *)content url:(NSString *)url;

///  分享 含回调
- (void)shareInfoWithTitle:(NSString *)title content:(NSString *)content url:(NSString *)url completion:(UMSocialRequestCompletionHandler)completion;
///  分享 含回调
- (void)shareInfoWithImage:(id)image WithTitle:(NSString *)title content:(NSString *)content url:(NSString *)url completion:(UMSocialRequestCompletionHandler)completion;

///  分享 微信小程序
- (void)dc_shareWeChatPlatformType:(UMSocialPlatformType)platformType;

///  微信登录 友盟
- (void)dc_umWechatLogin:(void(^)(UMSocialUserInfoResponse * resp))successBlcok;

/// QQ登录
- (void)dc_umQQLogin:(void(^)(UMSocialUserInfoResponse * resp))successBlcok;

///  微信登录 原生
- (void)dc_weixinAuthReq;


@end

NS_ASSUME_NONNULL_END

#endif
